<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<!--[if lt IE 9]>
    		<script src="../js/jquery-1.11.3.js"></script>    
		<![endif]-->
		<!--[if gte IE 9]><!-->
		<script src="../js/jquery-3.1.1.js"></script>
		<!--<![endif]-->
		<script src="../js/jquery.jsonp.js"></script>
		<title></title>
		<script type="text/javascript">
			//var vurl = "http://v.juhe.cn/weather/index?callback=?";
			vurl="http://www.runoob.com/try/ajax/jsonp.php?jsoncallback=?";
			function funget() {
			
				//url 最后一个问号就代表了后面的第二个参数，即回调函数 function(data)
				$.getJSON(vurl, function(data) {
					var html = '<ul>';
					for(var i = 0; i < data.length; i++) {
						html += '<li>' + data[i] + '</li>';
					}
					html += '</ul>';

					$('#divCustomers').html(html);
				}
				);
			}
		</script>
	</head>

	<body>
		<div id=divCustomers></div>
		<button onclick="funget()">请求并获取返回结果 jquery</button><br>
	</body>

</html>